package c8.template;

import java.util.function.Consumer;

public class OnlineBankingLambda {
   public void processConsumer(int id, Consumer<Customer> makeCustomerHappy){
        Customer c=InitData.consumers.get(id);
       if(c==null){
           System.out.println("oh,this consumer is not here,please check your id");
           return;
       }
        makeCustomerHappy.accept(c);
   }
}
